import orderdetail from './orderdetail';
import {template} from 'nuijs';
import './style/index.less';
export default {
    path:'order/orderdetail',
    target:'#menu_orderList',
    onInit(){
        this.self.request('post','order/getOrderDetail.do',{'orderId':this.data.query.orderId},(res)=>{
            if(res.result=='success'){
                this.element.html(template.render(orderdetail.main,res.orderDetail));
            }
        })
    }
}